package com.jindy.module.returnreceiptorder.service;

import com.jindy.module.machine.domain.MachineRecord;
import com.jindy.module.order.domain.Order;
import com.jindy.module.returnreceiptorder.domain.ReturnReceiptOrder;

import java.util.List;

/**
 * 回货入库单Service接口
 *
 * @author ruoyi
 * @date 2022-10-19
 */
public interface IReturnReceiptOrderService
{
    /**
     * 查询回货入库单
     *
     * @param id 回货入库单主键
     * @return 回货入库单
     */
    public ReturnReceiptOrder selectReturnReceiptOrderById(Long id);

    /**
     * 查询回货入库单列表
     *
     * @param returnReceiptOrder 回货入库单
     * @return 回货入库单集合
     */
    public List<ReturnReceiptOrder> selectReturnReceiptOrderList(ReturnReceiptOrder returnReceiptOrder);

    /**
     * 新增回货入库单
     *
     * @param returnReceiptOrder 回货入库单
     * @return 结果
     */
    public int insertReturnReceiptOrder(ReturnReceiptOrder returnReceiptOrder);

    /**
     * 扫码新增机器回货入库记录
     *
     * @param machineRecord 机器回货入库记录
     * @return 结果
     */
    public int insertReturnReceiptOrder2( MachineRecord machineRecord);


    /**
     * 扫码查询机器所属未完成订单
     *
     * @param machineRecord 记录
     * @return 记录
     */
    public Order selectOrderByMachineNo(MachineRecord machineRecord);


    /**
     * 修改回货入库单
     *
     * @param returnReceiptOrder 回货入库单
     * @return 结果
     */
    public int updateReturnReceiptOrder(ReturnReceiptOrder returnReceiptOrder);

    /**
     * 批量删除回货入库单
     *
     * @param ids 需要删除的回货入库单主键集合
     * @return 结果
     */
    public int deleteReturnReceiptOrderByIds(Long[] ids);

    /**
     * 删除回货入库单信息
     *
     * @param id 回货入库单主键
     * @return 结果
     */
    public int deleteReturnReceiptOrderById(Long id);
}
